#!/bin/bash  
  
# 安装Vundle  
git clone https://gitee.com/tomato__chao/vimrc.git ~/.vim/bundle/Vundle.vim  
  
# 创建或修改Vim配置文件  
if [ -f "$HOME/.vimrc" ];then
    echo "Your '$HOME/.vimrc' is saved as '$HOME/.vimrc.bak'"
    cp $HOME/.vimrc $HOME/.vimrc.bak
fi

echo "Get new '$HOME/.vimrc'"
cp .vimrc $HOME/.vimrc
  
# 安装插件 
echo "Get PluginInstall" 
vim +PluginInstall +qall  
  
echo "Vim配置完成！"  